package projectchumashgeniusproject;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class ProjectChumashGeniusProject
{
    public enum BookName{GENESIS, EXODUS, LEVITICUS, NUMBERS, DEUTERONOMY};
    
    public static void main(String[] args)
    {
    }
    static public void save(Chumash c) throws IOException
    {
        c.writeObject(new ObjectOutputStream(new FileOutputStream(new File("ChumashTest.txt"))));
    }
    static public Chumash load() throws FileNotFoundException, IOException, ClassNotFoundException
    {
        Chumash c = new Chumash();
        c.readObject(new ObjectInputStream(new FileInputStream(new File("ChumashTest.txt"))));
        return c;
    }
}
